<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
    <body>

        <ui:composition template="/template.xhtml">

            <ui:define name="title">
                #{msg.login_title_username}
            </ui:define>

            <ui:define name="body">

                <h:messages globalOnly="true"
                            infoClass="colorGreen"  errorClass="alert"
                            fatalClass="colorOrange" />
                <h:form id="helloForm">
                    <h:panelGrid columns="2">
                        <h:outputLabel value="#{msg.login_label_username}" />
                        <h:inputText id="user" value="#{userLoginBean.userName}" />
                        <h:outputLabel value="#{msg.login_label_password}" />
                        <h:inputSecret id="pwd" value="#{userLoginBean.password}" />
                        <h:commandButton id="submit" action="#{userLoginBean.userLogin}" value="#{msg.bt_submit}" />
                        <h:outputLabel />
                    </h:panelGrid>
                </h:form>
                
            </ui:define>

        </ui:composition>

    </body>
</html>

